home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14612 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: ix.netcom.com!news
  2. From: George Harth <gharth@salamander.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Dialog controls to OWL instances? How?
  5. Date: Sun, 31 Mar 1996 18:24:23 -0500
  6. Organization: Netcom
  7. Message-ID: <315F1427.76D@salamander.net>
  8. NNTP-Posting-Host: akr-oh1-23.ix.netcom.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-NETCOM-Date: Sun Mar 31  5:24:38 PM CST 1996
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Here's what I want to do (in Borland C++ 5.0)...
  16.  
  17. I have dialog templates in my resource file.  I instantiate a TDialog
  18. window passing in the DIALOG_ID.  That's all fine.  The dialog
  19. works as expected, but here's my question:  How can you
  20. associate a radiobutton (for example) with a TRadioButton, so
  21. that I can call TRadioButton->Check(); as apposed to specifically
  22. using SendDlgItemMessage(MY_RADIO_BUTTON, msg, ...);
  23.  
  24. I know you can create a TRadioButton and pass it coordinates
  25. telling it where to display itself, but this seems to destroy the
  26. ease of laying out controls in a dialog resource.
  27.  
  28. Am I going crazy, or maybe just blind?  It seems like the 
  29. manuals (ie.  online help files) suggest that this is possible,
  30. but I can't seem to find an example of it being done.
  31.  
  32. Thanks for any help... George
  33. -- 
  34. ------------------------------------------------------------------.
  35. gharth@mcs.kent.edu                 |     Aristar, Inc.           |
  36. gharth@salamander.net               |     gharth@aristar.com      |
  37. http://www.salamander.net/~gharth   |     http://www.aristar.com  |
  38. ------------------------------------------------------------------*
  39.